#include <QApplication>
#include "DisplayController.h"
#include "ADConverter.h"
#include "SignalInput.h"
#include "Signal.h"
#include "SleepTimer.h"

int main(int argc, char *argv[])
{
	QApplication app(argc, argv);

	DisplayController dc;
	SleepTimer t;
	
	ADConverter dev1(1);
//	ADConverterCountDevice dev2(100);

	SignalInput si1(&dev1);
//	SignalInput si2(&dev2);
	Signal s1(si1);
//	Signal s2(si2);

	dev1.open();
	//dev2.open();

	s1.start();
//	s2.start();

	dc.addHistory(s1.getHistory());
	dc.setTimeScale(1);

	t.sleep(2000);
	dc.showDisplay();
	dc.start();

	return app.exec();
}

